<?php

class SysCustTable extends Doctrine_Table
{

    
    public function getSysCustQuery(Doctrine_Query $query = null)
    {
        if(is_null($query))
        {
            $query = $this->createQuery();
        }

        $query->addWhere("acct_set_id = ?", sfContext::getInstance()->getUser()->getAttribute("acct_set"));
        return $query;
    }
    
}
